<?PHP
ob_start();
include("common/connection.php");
$uid=$_POST['uid'];
$status=$_POST['status'];
$origin=$_POST['origin'];
$mail=$_POST['mail'];

if($uid!='')
{	
$addUser="UPDATE `users` SET `status`='$status' WHERE `id`=$uid AND `verify`='$origin'";
$resultUser=mysql_db_query($db_name,$addUser);


$content="<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

</head>



<body style='height:auto; width:960px; margin:0 auto;'>
<div id='main_div' style='height:auto; width:960px; margin:0 auto; margin-top:0px;'>    
    <div id='main_div_banner_top' style='height:170px; width:960px; background-color:#CCC;'>
    	<div style='border:0px solid red; width:100%; height:167px'><img width='960' src='http://bobi-reunion2012.webpers.com/images/banner.jpg'/></div>
        
        
    </div><!-- end of main_div_banner_top-->
    
    <div id='after_middle_black_body' style='border:1px solid #dadada; background:#dadada;'>
   		
        <div id='after_middle_normal_body' style='height:auto; width:894px;  background-color:#FFF;  padding:3px 14px; margin-left:18px;'>
		<table align='center' border='0' cellpadding='10' cellspacing='0' style='font-family:Verdana, Geneva, sans-serif; font-size:18px; font-weight:bold;'>
	<tr align='center' style='color:#000 !important;'>
		<td>Date<br>23 March 2012</td>
		<td>Venue<br>Banani Bidyaniketan School premises</td>
		<td>Time<br>10am - 10pm</td>
	</tr>
</table>
        	<p class='header_p1' style='text-align:center; font-family:Verdana, Geneva, sans-serif; font-size:31px; color:#ff4b00;'>Your Registration Fee for Banani Bidyaniketan: 40 Years Celebration & Reunion - 2012 is recieved.</p>
            
             <h2 align='center'><b>PLEASE BRING THE TICKET ON THE PROGRAM DAY</b></h2>
             
             	
             
                   <table style='margin-left:165px; margin-bottom:20px; margin-top:30px;'>
                        <tr>
                            <td class='progshed_1' style='font-family:Verdana, Geneva, sans-serif; font-size:14px; padding:0 10px; font-weight:bold; line-height:1; color:#2A2A2A;'><p>10:00 AM</p></td>
                            <td class='progshed_2' style='font-family:Verdana, Geneva, sans-serif; font-size:14px; line-height:1;'><p>Reporting & Mingling</p></td>
                        </tr>
                                           
    
                    </table>   
                    <br />
             
             </div>
             <br />
        
        </div>
        
    </div><!-- end of after_middle_black_body -->
    
</div><!-- end of main_div -->



</body>
</html>";
//echo $content;

$subject="Banani Bidyaniketan: 40 Years Celebration & Reunion - 2012 PAYMENT CONFIRMATION.";
$headers ="MIME-Version: 1.0\n";
$headers .= "From: bidyaniketanbanani@gmail.com\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$email=$_POST['email'];
	if($resultUser)
		{		
		mail("$mail","$subject","$content",$headers);
		header("Location: containeradmin.php?area=user&action=report&origin=$origin&mess=1");
		}
}
else
{
	header("Location: containeradmin.php?area=user&action=report&origin=$origin&mess=2");
}
?>

